import request from '@/utils/request'
import { praseStrEmpty } from "@/utils/tykj";

// 查询商品属性列表
export function listProperty(query) {
  return request({
    url: '/material/property/list',
    method: 'get',
    params: query
  })
}

// 新增商品属性列表
export function addProperty(data) {
  return request({
    url: '/material/property/save',
    method: 'post',
    data: data
  })
}

// 查询商品属性详细
export function getProperty(id) {
  return request({
    url: '/material/property/info/' + praseStrEmpty(id),
    method: 'get'
  })
}

// 修改商品属性
export function updateProperty(data) {
  return request({
    url: '/material/property/update',
    method: 'put',
    data: data
  })
}


// 删除用户
export function delProperty(userId) {
  return request({
    url: '/material/property/delete/' + userId,
    method: 'delete'
  })
}







